﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TrangChu.master" AutoEventWireup="true" CodeFile="Xem_Hang_Hoa.aspx.cs" Inherits="xem_sach" %>

<%@ Register Src="~/UserConTrols/Quang_Cao_ROTATO.ascx" TagName="quangcaororo" TagPrefix="trantrung" %>
<%@ Register Src="~/UserConTrols/Hang_Hoa.ascx" TagName="hanghoa" TagPrefix="trantrung" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <a name="pagging1"></a>
    <asp:Label ID="showthongbao" runat="server" Text="Label" Visible="False"></asp:Label>
    <asp:Panel ID="Paneltieudehanghoa" Width="100%" runat="server">
        <div class="cnt_block1">
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td class="c_top_c">
                        &nbsp;<br />
                        &nbsp;THÔNG TIN HÀNG HÓA<br />
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <asp:Panel ID="Panelphantrang1" Width="100%" Visible="false" runat="server">
        <hr color="#008000" size="1" noshade>
        <table width="100%">
            <tr>
                <td align="left" width="15%">
                    <asp:HyperLink ID="trangdautien1" NavigateUrl="../default.aspx?page=back&index=1#pagging"
                        runat="server">Trang Đầu</asp:HyperLink>
                </td>
                <td align="left" width="15%">
                    <asp:HyperLink ID="trangsau1" runat="server">Trang Trước</asp:HyperLink>
                </td>
                <td align="center" width="40%">
                    <asp:Label ID="tongconghanghoa1" runat="server" Text=""></asp:Label>
                </td>
                <td align="right" width="15%">
                    <asp:HyperLink ID="trangtiep1" runat="server">Trang Tiếp</asp:HyperLink>
                </td>
                <td align="right" width="15%">
                    <asp:HyperLink ID="trangcuoi1" runat="server">Trang Cuối</asp:HyperLink>
                </td>
            </tr>
        </table>
        <hr color="#008000" size="1" noshade>
    </asp:Panel>
    <asp:DataList ID="DataList2" Width="100%" runat="server" RepeatColumns="1">
        <ItemTemplate>
            <table border="0" width="100%" cellpadding="3" cellspacing="0">
                <tr>
                    <td align="center" colspan="2">
                        <a target="_blank" href='<%# "anh_san_pham/" + Eval("hinhanh") %>'>
                            <img border="0" id="trantrungresize" onload="chinhsizehinhanh('trantrungresize')" src='<%# "anh_san_pham/" + Eval("hinhanh") %>' /></center></a>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "Xem_Hang_Hoa.aspx?mahh=" + Eval("mahh") %>'
                            Text='<%# rutgonten((string)Eval("tenhh"),60,1) %>'></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        Loại Hàng Hóa:
                        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# "~/Xem_Hang_Hoa.aspx?maloaihh=" + Eval("maloaihh") %>'
                            Text='<%# Eval("tenloaihh") %>'></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        Nhóm Hàng Hóa:
                        <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl='<%# "~/Xem_Hang_Hoa.aspx?manhomhh=" + Eval("manhomhh") %>'
                            Text='<%# Eval("tennhomhh") %>'></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        Nhà SX:
                        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# "~/Xem_Hang_Hoa.aspx?manhasx=" + Eval("manhasx") %>'
                            Text='<%# Eval("tennhasx") %>'></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        Đơn Giá: <font color="red">
                            <%#Eval("dongia", "{0:#,##0} VNĐ")%></font>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl='<%# "Xem_Hang_Hoa.aspx?id=add&mahh=" + Eval("mahh") %>'
                            ImageUrl="~/Images/Nut/chonhang.gif"><font color="green"><b>Thêm vào giỏ hàng</b></font></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <br />
                        <font color="blue">Ngày nhập :
                            <%#layNgayChuanVietNam((DateTime)Eval("ngaynhap"))%></font><br />
                        <asp:Label ID="motasach" runat="server"><%#Eval("motachitiet")%></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <SeparatorTemplate>
            <hr color="#008000" size="1" noshade>
        </SeparatorTemplate>
    </asp:DataList>
    <asp:DataList ID="DataList1" runat="server" RepeatColumns="2">
        <ItemTemplate>
            <table border="0" width="100%" cellpadding="3" cellspacing="0">
                <tr>
                    <td style="width: 20%; vertical-align: top" rowspan="5">
                        <a href='<%# "Xem_Hang_Hoa.aspx?mahh=" + Eval("mahh") %>'>
                            <img border="0" width="100" height="100" src='<%# "anh_san_pham/" + Eval("hinhanh") %>' /></a>
                    </td>
                    <td>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "Xem_Hang_Hoa.aspx?mahh=" + Eval("mahh") %>'
                            Text='<%# rutgonten((string)Eval("tenhh"),22,1) %>'></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div title='<%#Eval("tenloaihh") %>'>
                            Loại Hàng:
                            <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# "~/Xem_Hang_Hoa.aspx?maloaihh=" + Eval("maloaihh") %>'
                                Text='<%# rutgonten((string)Eval("tenloaihh"),10,2) %>'></asp:HyperLink></div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div title='<%#Eval("tennhomhh") %>'>
                            Nhóm Hàng:
                            <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl='<%# "~/Xem_Hang_Hoa.aspx?manhomhh=" + Eval("manhomhh") %>'
                                Text='<%# rutgonten((string)Eval("tennhomhh"),12,2) %>'></asp:HyperLink></div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div title='<%#Eval("tennhasx") %>'>
                            Nhà SX:
                            <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# "~/Xem_Hang_Hoa.aspx?manhasx=" + Eval("manhasx") %>'
                                Text='<%# rutgonten((string)Eval("tennhasx"),15,2) %>'></asp:HyperLink></div>
                    </td>
                </tr>
                <tr>
                    <td>
                        Đơn Giá: <font color="red">
                            <%#Eval("dongia", "{0:#,##0} VNĐ")%></font>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl='<%# "Xem_Hang_Hoa.aspx?id=add&mahh=" + Eval("mahh")%>'
                            ImageUrl="~/Images/Nut/chonhang.gif"><font color="green"><b>Thêm vào giỏ hàng</b></font></asp:HyperLink>
                    </td>
                    <td>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "Xem_Hang_Hoa.aspx?mahh=" + Eval("mahh") %>'
                            ImageUrl="~/images/nut/chitiet.gif">Xem Hàng</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <font color="blue">Ngày nhập :
                            <%#layNgayChuanVietNam((DateTime)Eval("ngaynhap"))%></font>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <br />
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <SeparatorTemplate>
        </SeparatorTemplate>
    </asp:DataList>
    <asp:Panel ID="Panelphantrang2" Visible="false" runat="server">
        <hr color="#008000" size="1" noshade>
        <table width="100%">
            <tr>
                <td align="left" width="15%">
                    <asp:HyperLink ID="trangdautien2" runat="server">Trang Đầu</asp:HyperLink>
                </td>
                <td align="left" width="15%">
                    <asp:HyperLink ID="trangsau2" runat="server">Trang Trước</asp:HyperLink>
                </td>
                <td align="center" width="40%">
                    <asp:Label ID="tongconghanghoa2" runat="server" Text=""></asp:Label>
                </td>
                <td align="right" width="15%">
                    <asp:HyperLink ID="trangtiep2" runat="server">Trang Tiếp</asp:HyperLink>
                </td>
                <td align="right" width="15%">
                    <asp:HyperLink ID="trangcuoi2" runat="server">Trang Cuối</asp:HyperLink>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <hr color="#008000" size="1" noshade>
    <trantrung:quangcaororo ID="quangcaororo1" runat="server" />
    <hr color="#008000" size="1" noshade>
    <trantrung:hanghoa ID="hanghoa" runat="server" />
</asp:Content>


